package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.DeviceType;
import com.yiya.model.DeviceTypeExample;
import com.yiya.model.DeviceTypeModel;

public interface DeviceTypeMapper {
    int countByExample(DeviceTypeExample example);

    int deleteByExample(DeviceTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DeviceType record);

    int insertSelective(DeviceType record);

    List<DeviceType> selectByExample(DeviceTypeExample example);

    DeviceType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DeviceType record, @Param("example") DeviceTypeExample example);

    int updateByExample(@Param("record") DeviceType record, @Param("example") DeviceTypeExample example);

    int updateByPrimaryKeySelective(DeviceType record);

    int updateByPrimaryKey(DeviceType record);
    
    List<DeviceType> selectByModel(DeviceTypeModel model);
    
    int countByModel(DeviceTypeModel model);
    
    /**
     * 获取所有设备类型
     * @return
     */
    List<DeviceType> selectAll();
}